import { Response } from "express";
import { ErrResp, SuccResp } from "../types/resp";
import {success, error} from '../../utils/resp'
class Base {
    /**
     * 成功响应
     * @param res 
     * @param options 
     */
    success<T>(res: Response, options: SuccResp<T>) {
        success(res, options)
    }

    /**
     * 失败响应
     * @param res 
     * @param options 
     */
    error(res: Response, options: ErrResp){
        error(res, options);
    }
}
export default Base;